package com.example.test.springdemo.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

@ApiModel(value = "3.2.7 菜单页面地址表")
public class AdminPageMenus implements Serializable {
    @ApiModelProperty(value = "主键",dataType = "Long")
    private Long id;

    @ApiModelProperty(value = "菜单名称",dataType = "String")
    private String menuName;

    @ApiModelProperty(value = "是否显示，0->显示，1->隐藏",dataType = "Byte")
    private Byte showStatus;

    @ApiModelProperty(value = "菜单链接的地址",dataType = "String")
    private String url;

    @ApiModelProperty(value = "上级菜单，0->顶级菜单，大于0->下级菜单",dataType = "Long")
    private Long parentId;

    @ApiModelProperty(value = "排序",dataType = "Integer")
    private Integer sorted;

    @ApiModelProperty(value = "创建时间",dataType = "Date")
    private Date gmtCreateTime;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public Byte getShowStatus() {
        return showStatus;
    }

    public void setShowStatus(Byte showStatus) {
        this.showStatus = showStatus;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Integer getSorted() {
        return sorted;
    }

    public void setSorted(Integer sorted) {
        this.sorted = sorted;
    }

    public Date getGmtCreateTime() {
        return gmtCreateTime;
    }

    public void setGmtCreateTime(Date gmtCreateTime) {
        this.gmtCreateTime = gmtCreateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", menuName=").append(menuName);
        sb.append(", showStatus=").append(showStatus);
        sb.append(", url=").append(url);
        sb.append(", parentId=").append(parentId);
        sb.append(", sorted=").append(sorted);
        sb.append(", gmtCreateTime=").append(gmtCreateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
